<?php
/**
* @version $Id: accounts.php
* @package Accounts
*/
/* Make sure this is not direct access */
defined('_JEXEC') or die('Restricted access');
/* Import the view class */
jimport( 'joomla.application.component.view');
class AccountsViewAccounts extends JView
{
	function display($tpl = null)
    {
    	$layout	=		$this->getLayout();
    	$params =&		JComponentHelper::getParams( 'com_accounts' );
		$captcha = 		$params->get('useCheckSecurityImages');
    	$this->assignRef('captcha', $captcha);
		if( $layout == 'form') {
			// Load the form validation behavior
			JHTML::_('behavior.formvalidation');
			parent::display($tpl);
			return;
		}

        //get the obligation
		$obligation	=&			$this->get('Data');
		$this->assignRef('obligation', $obligation);
        parent::display($tpl);
    }
}
?>